﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MForm = GMS.MainClasses;
using GMS.ServiceFunctions.Data;

namespace GMS.MainForm
{
    public partial class MainRunnableForm : MForm.MainFormTemplate
    {
        public MainRunnableForm(String Server, String Database, String User)
        {
            InitializeComponent();
            this.Server.Text = this.Server.Text +" - "+ Server;
            this.Database.Text = this.Database.Text + " - " + Database;
            this.User.Text = this.User.Text + " - " + User;
            ConnectionString = "server=pavel;uid=pavel;pwd=123456;database=GMSDatabase";
        }
        private ReturnData RD = new ReturnData();
        private void MainRunnableForm_Load(object sender, EventArgs e)
        {
            AddMainMenuStrip(ReturnDataSetDB(ConnectionString, "exec SelctMenuItems 0").Tables[0]);
        }
    }
}
